home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 3: Developer Tools / Linux Cubed Series 3 - Developer Tools.iso / devel / lang / lisp / stk-3.002 / stk-3 / STk-3.1 / Src / tk-glue.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-07-02  |  1.8 KB  |  53 lines

  1. /*
  2.  *
  3.  * t k - g l u e . h         - Glue function between the scheme and Tk worlds
  4.  *
  5.  * Copyright ⌐ 1993-1996 Erick Gallesio - I3S-CNRS/ESSI <eg@unice.fr>
  6.  * 
  7.  *
  8.  * Permission to use, copy, and/or distribute this software and its
  9.  * documentation for any purpose and without fee is hereby granted, provided
  10.  * that both the above copyright notice and this permission notice appear in
  11.  * all copies and derived works.  Fees for distribution or use of this
  12.  * software or derived works may only be charged with express written
  13.  * permission of the copyright holder.  
  14.  * This software is provided ``as is'' without express or implied warranty.
  15.  *
  16.  * This software is a derivative work of other copyrighted softwares; the
  17.  * copyright notices of these softwares are placed in the file COPYRIGHTS
  18.  *
  19.  *
  20.  *            Author: Erick Gallesio [eg@unice.fr]
  21.  *    Creation date: 19-Feb-1993 22:15
  22.  * Last file update:  2-Jul-1996 10:28
  23.  *
  24.  */
  25.  
  26. /* Scheme objects used to represent the "." pseudo widget and its name */
  27. extern SCM STk_root_window;
  28. extern SCM STk_root_window_name;
  29.  
  30. /* Last result of Tcl_GlobalEval (as a SCM object rather than a string) */
  31. extern SCM STk_last_Tk_result;
  32.  
  33. char *STk_convert_for_Tk(SCM obj, SCM *res);
  34.  
  35. void STk_sharp_dot_result(Tcl_Interp *interp, char *value);
  36. void STk_stringify_result(Tcl_Interp *interp, char *value);
  37. SCM STk_last_Tk_as_SCM(void);
  38. SCM STk_get_NIL_value(void);
  39.  
  40. int   STk_valid_callback(char *s, void **p);
  41. void  STk_add_callback(char *key1, char *key2, char *key3, SCM closure);
  42. void  STk_delete_callback(char *key);
  43. void  STk_mark_callbacks(void);
  44. char *STk_append_callback_parameters(SCM proc);
  45.  
  46. /*
  47.  * STk_stringify permits to transform the string "s" in a valid STk string.
  48.  * Original string is deallocated if free_original is 1 
  49.  */
  50.  
  51. char *STk_stringify(char *s, int free_original);
  52.  
  53.